from django.urls import path

from .views import *

app_name = 'store_system'
urlpatterns = [
    path('login/', login, name='login'),
    # path('email_login/', email_login, name='email_login'),
    path('index/', index, name='index'),
    path('api/story/<int:story_id>/', story_detail, name='story_detail'),
    path('about/', about, name='about'),
    path('library/', library, name='library'),
    path('get_comments/', get_comments, name='get_comments'),  # 新增：获取评论
    path('submit_comment/', submit_comment, name='submit_comment'),
    path('toggle-user-status/<int:user_id>/', toggle_user_status, name='toggle_user_status'),
    path('toggle_like/', toggle_like, name='toggle_like'),
    path('increase_read/', increase_read, name='increase_read'),
    path('delete_comment/',delete_comment, name='delete_comment'),
    path('register/', register, name='register'),
    path('generate/', generate_story, name='generate_story'),
    path('savestory/', save_story, name='save_story'),
    path('community/', community, name='community'),
    path('logout/', logout, name='logout'),
    # path('admin_index/',admin_index, name='admin_index'),
    path('story_review/',story_review, name='story_review'),
    path('user_control/',user_control, name='user_control'),
    path('data_statistics/',data_statistics, name='data_statistics'),
    path('content/review/action/', review_action, name='review_action'),
    path('personal_center/',personal_center, name='personal_center'),
    path('change_password/', change_password, name='change_password'),
    path('user_feedback',user_feedback,name='user_feedback'),
]